@tool
@icon("../icons/expression_guard.svg")
class_name ConditionGuard
extends Guard

#region 属性
@export var conditions:Array[String]
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
func is_satisfied(transition:Transition,state:State) -> bool:
	var args = {}
	if "cur_entity" in state.fsm.cur_owner:
		args["entity"] = state.fsm.cur_owner.cur_entity
	elif "weapon" in state.fsm.cur_owner:
		args["entity"] = state.fsm.cur_owner.weapon
	return ConditionUtil.check_condition(conditions,args)
#endregion
#region 公共方法
#endregion
#region 私有方法
#endregion
#region 生命周期函数
#endregion

